import request from '@/utils/request'
// 新增老师
export function addTeacher(data) {
    return request({
        url: '/admin/teacher',
        method: 'post',
        data
    })
}
// 老师分页
export function pagingTeacher(data) {
    return request({
        url: '/admin/teacher/paging',
        method: 'post',
        data
    })
}
// 老师列表
export function listTeacher(data) {
	return request({
		url: '/admin/teacher/list',
		method: 'post',
		data
	})
}
// 老师详情
export function getTeacherDetail(id) {
    return request({
        url: '/admin/teacher/' + id,
        method: 'get',
    })
}
// 修改老师
export function editTeacher(data) {
    return request({
        url: '/admin/teacher',
        method: 'put',
        data
    })
}
// 批量删除老师
export function delTeacher(idList) {
	return request({
		url: '/admin/teacher/' + idList,
		method: 'delete',
	})
}
// 老师导入
export function importTeacher(data) {
	return request({
		url: '/admin/teacher/import',
		method: 'post',
		data
	})
}
// 老师导出
export function exportTeacher(data) {
	return request({
		url: '/admin/teacher/export',
		method: 'post',
		data
	})
}
